package com.xuelang.pipeline.artifact.infrastructure.resource.converter;

import com.xuelang.pipeline.artifact.domain.resource.ArtifactProxy;
import com.xuelang.pipeline.artifact.infrastructure.resource.dataobject.ArtifactProxyDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 制品仓库代理实体与制品仓库代理DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface ArtifactProxyToArtifactProxyDOConverter {

    ArtifactProxyToArtifactProxyDOConverter INSTANCE = Mappers.getMapper(ArtifactProxyToArtifactProxyDOConverter.class);

    /**
     * ArtifactProxy转化为ArtifactProxyDO
     * @param artifactProxy
     * @return
     */
    ArtifactProxyDO artifactProxyToArtifactProxyDO(ArtifactProxy artifactProxy);

    /**
     * ArtifactProxyDO转化为ArtifactProxy
     * @param artifactProxyDO
     * @return
     */
    ArtifactProxy artifactProxyDOToArtifactProxy(ArtifactProxyDO artifactProxyDO);

}
